package com.woniuxy.qimengcommons.enums;

public enum RespStatus {
    SUCCESS(200,"操作成功"),
    LOGIN_SUCCESS(201,"登录成功"),
    FAILED(-1,"操作失败"),
    LOGIN_FAILED(-2,"登录失败"),
    NO_AUTHENTICATION(-3,"未认证，请重新登录！"),
    AUTH_FAILED(-4,"认证失败！"),
    TOKEN_EXPIRED(-5,"令牌已过期！"),
    TOKEN_ILLEGAL(-6,"非法令牌！"),
    ACCOUNT_FAILED(-7,"用户名或密码错误！");

    private Integer code;
    private String message;

    private RespStatus(Integer code, String message){
        this.code = code;
        this.message =  message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
